package com.sht.product.yuea.weixin.request;

import java.util.Map;

import org.apache.http.client.methods.HttpPost;

import com.sht.common.components.httpClient.DefaultCloseableHttpClient;

public class SimplePost extends BaseRequest{
	private HttpPost httpPost;
	
	public SimplePost(String url) {
		super(url);
		this.httpPost=new HttpPost(super.url);
	}
	public SimplePost(String url,Map<String, String> urlPara) {
		super(url);
		super.setUrlPara(urlPara);
	}
	
	protected String post(){
		//System.out.println("url****"+super.url);
		String string = new DefaultCloseableHttpClient().executePost(this.httpPost);
		//System.out.println("string****"+string);
		return string;
	}
	@Override
	protected void init(String url) {
		this.httpPost=new HttpPost(url);
		
	}
}
